import request from '@/utils/request'

export function get(query) {
  return request({
    url: '/approval/approvalManagement/list',
    method: 'get',
    params: query
  })
}

export function agree(query) {
  return request({
    url: '/approval/approvalManagement/agree',
    method: 'put',
    params: query
  })
}

export function refuse(query) {
  return request({
    url: '/approval/approvalManagement/refuse',
    method: 'put',
    params: query
  })
}
export function transfer(query) {
  return request({
    url: '/approval/approvalManagement/transfer',
    method: 'put',
    params: query
  })
}

export function getApprovers(query) {
  return request({
    url: '/approval/approvalManagement/approvers',
    method: 'get',
    params: query
  })
}